<%@page import="ch.ethz.inf.shop.model.RegisteredUser"%>
<%@page import="ch.ethz.inf.shop.HomeServlet"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="MasterHeader.jsp" %>

<%
final RegisteredUser user = (RegisteredUser) session.getAttribute(HomeServlet.SESSION_LOGGED_IN_USER);

if (user != null) {
	// There is a user logged in! Display a greeting!
%>
	Welcome back <%=user.getName()%>
<%
} else {
	// No user logged in.
%>
	Welcome!
<%
}
%>


<%@ include file="MasterFooter.jsp" %>